﻿using System;
using System.Collections.Generic;

using E.BLL;
using E.Model;
using E.Web.UI.Page;

using X.Common;

namespace E.Web.training.internals.publics.course
{
    public partial class InternalPublicCourseList : BasePage
    {
        public Dictionary<int, string> courseList = new Dictionary<int, string>();
        public string act;
        public int courseid;
        public IList<StudyLogModel> studyList;

        protected override void ShowPage()
        {
            courseList = (new CourseBLL()).GetInternalPublicCourseList();

            act = XRequest.GetString("act");
            courseid = XRequest.GetInt("CourseSlt", -1);

            if (ispost || act == "s")
            {
                studyList = (new StudyBLL()).GetUserPublicStudyLog(userid, courseid, true);
            }
        }

        protected void Page_Load(object sender, EventArgs e)
        {

        }
    }
}